From 2d8eb0f62d39abc9d1a49a808f1e69169ea23212 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 14 Jan 2010 14:10:40 +0000 Subject: [PATCH] libxc: Fix IOCTL_PRIVCMD_MMAPBATCH_V2 fallback check privcmd_ioctl returns EINVAL if the type is not supported. This fixes the guest booting issue caused by C/S 20791. Signed-off-by: Dongxiao Xu Signed-off-by: Jan Beulich --- tools/libxc/xc_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c index e0e807f2cc..3f3bc10d95 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -180,7 +180,7 @@ void *xc_map_foreign_bulk(int xc_handle, uint32_t dom, int prot, } } - if ( rc < 0 && errno == ENOTTY && (int)num > 0 ) + if ( rc < 0 && errno == EINVAL && (int)num > 0 ) { /* * IOCTL_PRIVCMD_MMAPBATCH_V2 is not supported - fall back to -- 2.30.2